package edu.sctu.liangyuxiang.day20150628;


/**
 * Created by user20 on 2015/6/28.
 */
public class TextMain {
    public static void main(String[] args)throws Exception{
        GetJson getJson = new GetJson();
        IOUntil ioUntil = new IOUntil();

        new ThreadRun().run();

        String json = getJson.getJson("http://api.ii.com.cn/goods/apprec", "page=1&size=10");
        Appbean appbean = new JsonUntil().jsonUntil(json);

        ioUntil.serializableJson(json,"D:/Json/json.txt");
        ioUntil.serializableAppbean(appbean,"D:/Json/Appbean.txt");

        new PriceUntil().price(ioUntil.readAppbean("D:/Json/Appbean.txt"));

    }
}
